//
//  UIFont+QSExtension.swift
//  TestSwift
//
//  Created by Song on 2018/4/26.
//  Copyright © 2018年 Song. All rights reserved.
//

import UIKit

/// Medium字体
let kMediumFontName = ".SFUIDisplay-Medium"

extension UIFont {
    static func qs_systemFontSize(_ size: CGFloat) -> UIFont {
        return UIFont.systemFont(ofSize: kAdaptedWidth(size))
    }
    
    static func qs_boldFontSize(_ size: CGFloat) -> UIFont {
        return UIFont.boldSystemFont(ofSize: kAdaptedWidth(size))
    }
    
    static func qs_otherFontSize(fontName: String, _ size: CGFloat) -> UIFont {
        return UIFont.init(name: fontName, size: kAdaptedWidth(size))!
    }
}
